package com.network.retrofit.net.okhttp.interceptors;



import com.network.retrofit.utils.NetWorkBaseUtil;

import java.io.IOException;

import okhttp3.Interceptor;
import okhttp3.Request;
import okhttp3.Response;

public class CommonRequestInterceptor implements Interceptor {


    @Override
    public Response intercept(Chain chain) throws IOException {
        Request.Builder builder = chain.request().newBuilder();
        // 添加通用请求头。
        builder.addHeader("os", "android");
        builder.addHeader("appVersion", "1");
        return chain.proceed(builder.build());
    }
}
